home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / knowhow4 / ceditl.h < prev    next >
C/C++ Source or Header  |  1994-10-10  |  705b  |  29 lines

  1. #ifndef __CAPTURE_EDIT_LINE_H_
  2. #define __CAPTURE_EDIT_LINE_H_
  3.  
  4. #include "editl.h"
  5.  
  6. enum CAPTURE_POS { C_LEFT, C_TOP, C_RIGHT, C_BOTTOM };
  7.  
  8. class CaptureEditLine : public EditLine
  9.     {
  10.     protected:
  11.     char* header;
  12.     CAPTURE_POS where;
  13.     int hdr_pat;
  14.     public:
  15.     CaptureEditLine(loc pos, int l, char* hdr = "",
  16.         CAPTURE_POS wh = C_RIGHT, int max_len = 0,
  17.         BORDERS b_type = BUTTON_BORDER, int pat = 0, int h_pat = 0,
  18.         int insert = 1)
  19.         :     EditLine(pos, l, max_len, b_type, pat, insert)
  20.         {
  21.         header = strdup(hdr);
  22.         hdr_pat = h_pat;
  23.         where = wh;
  24.         }
  25.     ~CaptureEditLine() { delete header; }
  26.     virtual void show();
  27.     };
  28.  
  29. #endif __CAPTURE_EDIT_LINE_H_